package part23_桥接模式_手机操作问题;

/**
 * @ClassName: Phone
 * @Author: AllenSun
 * @Date: 2020/3/9 23:45
 */
public abstract class Phone {
    //组合品牌
    private Brand brand;

    //构造器
    public Phone(Brand brand) {
        this.brand = brand;
    }

    protected void open(){
        this.brand.open();
    }

    protected void close(){
        brand.close();
    }

    protected void call(){
        brand.call();
    }
}
